<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>博客管理后台</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<jsp:include page="common/head.jsp"/>
<script type="text/javascript" src="admin/js/blog_type.js"></script>
</head>
<body>
	<div id="wrapper">
		<div id="wrapper-bgtop">
			<jsp:include page="common/header.jsp"></jsp:include>
			<div id="page">
				<div id="content">
				  <div>
				    <table width="425" border="0" cellpadding="0" cellspacing="0">
				      <tbody>
				        <tr>
				          <th width="88" align="center" valign="middle">排序</th>
				          <th width="213" align="center" valign="middle">分类名称</th>
				          <th width="124" align="center" valign="middle">操作</th>
			            </tr>
			            <!-- 数据 -->
			            <s:iterator value="#request.getAllBlogTypes" var="blog">
			            <tr>
				          <td height="34" align="center" valign="middle"><input type="hidden" name="id" value="<s:property value="#blog.id"/>"/>
				          <input name="displayOrder" type="text" size="4" value='<s:property value="#blog.displayOrder"/>'>
				          </td>
				          <td align="left" valign="middle">
				          <input maxlength="15" size="30" name="name" type="text" value='<s:property value="#blog.name"/>'>
				          </td>
				          <td align="center" valign="middle">
				          <a href="javascript:void(0);" onclick="blogType.fn.add();">保存</a>&nbsp;&nbsp;
				          <a href="javascript:void(0);" onclick="blogType.fn.del(this);">删除</a>
				          </td>
			            </tr>
			            </s:iterator>
				        
				        <tr>
				          <td height="34" align="center" valign="middle"><input name="displayOrder" type="text" id="addDisplayOrder"  size="4"></td>
				          <td align="left" valign="middle"><input maxlength="15" size="30" name="name" id="addName" type="text"></td>
				          <td align="center" valign="middle"><a href="javascript:void(0);" onclick="blogType.fn.add(this);">添加</a></td>
			            </tr>
			          </tbody>
			        </table>
			      </div>
				</div>
				<!-- end #content -->
				<jsp:include page="common/sidebar.html"></jsp:include>
				<!-- end #sidebar -->
				<div style="clear: both;">&nbsp;</div>
			</div>
			<!-- end #page -->
		</div>
	</div>
	<jsp:include page="../common/footer.html"></jsp:include>
	<!-- end #footer -->
	
</body>
</html>